package com.fivestar.pmanager.system.domain;

import com.fivestar.pmanager.core.base.BaseCommonParameterBean;
import com.fivestar.pmanager.model.FsUserBean;

/**
 * 系统公共参数
 *
 */
public class CommonParameterBean extends BaseCommonParameterBean
{
    private FsUserBean fsUserBean;


    public Integer getActorId()
    {
        return fsUserBean.getRowId();
    }


    public String getActorName()
    {
        return fsUserBean == null ? "" : fsUserBean.getName();
    }

    public FsUserBean getfsUserBean() {
        return fsUserBean;
    }

    public void setfsUserBean(FsUserBean fsUserBean)
    {
        this.fsUserBean = fsUserBean;
    }

    public static CommonParameterBean defaultCommonParameter()
    {
        CommonParameterBean commonParameterBean = new CommonParameterBean();
        FsUserBean userBean = new FsUserBean();
        userBean.setRowId(-1);
        userBean.setName(UNKOWN_DEFAULT_USER_NAME);
        commonParameterBean.setfsUserBean(userBean);
        return commonParameterBean;
    }
}
